# randpass.py
from random import choice
import string
# print(string.ascii_letters + string.digits)
def rand_pass(n):
    chars = string.ascii_letters + string.digits
    pa = ''
    for i in range(n):
        pa += choice(chars)
    return pa

if __name__ == '__main__':
    print(rand_pass(8))
    print(rand_pass(10))


